]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/volume: Hide sliders initially
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 11 May 2022 00:34:21 +0000 (02:34 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 11 May 2022 00:40:33 +0000 (02:40 +0200)
We update the visibility on state or stream changes, but those
changes may never happen if pipewire-pulse/pulseaudio isn't
available (for example when running as root).

Hiding the sliders is preferable in that case to showing non-working
controls.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2295>

js/ui/status/volume.js

index 7164e1054396171d56bbe78156a3078e3afd1229..f623ee680357ab5e9169402a3e79948e7369b37c 100644 (file)
@@ -34,6 +34,7 @@ var StreamSlider = class {
         this._control = control;
 
         this.item = new PopupMenu.PopupBaseMenuItem({ activate: false });
+        this.item.hide();
 
         this._inDrag = false;
         this._notifyVolumeChangeId = 0;